package com.zby.model.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;

/**
 * @TableName toc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AutoTable
public class Toc extends BasePojo {
    /**
     * 关联文章ID
     */
    @Schema(description = "关联文章ID")
    @AutoColumn(comment = "关联文章ID")
    private Integer articleId;

    /**
     * 关联内容块ID
     */
    @Schema(description = "关联内容块ID")
    @AutoColumn(comment = "关联内容块ID")
    private Integer contentBlockId;

    /**
     * 父级目录项ID（支持多级）
     */
    @Schema(description = "父级目录项ID（支持多级）")
    @AutoColumn(comment = "父级目录项ID（支持多级）")
    private Integer parentId;

    /**
     * 目录层级（如1=h2, 2=h3）
     */
    @Schema(description = "目录层级（如1=h2, 2=h3）")
    @AutoColumn(type = MysqlTypeConstant.TINYINT, comment = "目录层级（如1=h2, 2=h3）")
    private Integer depth;

    /**
     * 排序序号
     */
    @Schema(description = "排序序号")
    @AutoColumn(comment = "排序序号")
    private Integer order;
}
